<?php
// +----------------------------------------------------------------------
// | DCloud [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.yunku.cloud All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\controller;

use dc\controller\AdminBaseController;
use think\Db;
use app\admin\model\AdminMenuModel;

class IndexController extends AdminBaseController
{

    public function _initialize()
    {
        parent::_initialize();
    }

    /**
     * 后台首页
     */
    public function index()
    {
        $this->assign('menus', [
            [
                'url'   => url('user/admin_index/index'),
                'title' => '用户管理',
            ],
            [
                'url'   => url('Taxi/index'),
                'title' => '手机招车',
            ],
            [
                'url'   => url('Lost/index'),
                'title' => '失物招领',
            ],
            [
                'url'   => url('Rescue/index'),
                'title' => '一键搜救',
            ],
            [
                'url'   => url('Guide/index'),
                'title' => '办事指南',
            ],
            [
                'url'   => url('Suggestion/index'),
                'title' => '投诉建议',
            ],
            [
                'url'   => url('Dictionary/index'),
                'title' => '数据字典',
            ],
            [
                'url'   => url('Wechat/index'),
                'title' => '微信设置',
            ],
        ]);
        return $this->fetch();
    }
}
